Page({
  data: {
    weeklyMovieList: [{
        name: "八佰",
        comment: "最精彩的剧本，最真实的电影",
        imagePath: "/pages/images/niao.png",
        recommended: true,
        id:26754233
      },
      {
        name: "师傅1",
        comment: "最精彩的剧本，最真实的电影",
        imagePath: "/pages/images/tupa.jpg",
        recommended: false,
        id:88
      },
      {
        name: "师傅2",
        comment: "最精彩的剧本，最真实的电影",
        imagePath: "/pages/images/tupa.jpg",
        recommended: true,
        id:99
      },
      {
        name: "师傅3",
        comment: "最精彩的剧本，最真实的电影",
        imagePath: "/pages/images/tupa.jpg",
        recommended: true,
        id:100
      }
    ]
  },

  toDetail: function(event){
    console.log(event.currentTarget);
    var movieId=event.currentTarget.dataset.movieId;
    console.log(movieId);
    wx.navigateTo({
      url: '/pages/detail/detail?id='+movieId,
    })
  }
})